<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type='hidden' name='listkey' value='{$listkey}' />
	<input type='hidden' name='keywords' value='{$keywords}' />
	<input type='hidden' name='sfield' value='{$sfield}' />
	<input type="hidden" name="sfield_name" value="name" />	
</form>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
    <input type="hidden" name="g" value="{$group_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
       <input type ='hidden' name='selproid' value="{$selproid}" />
		<div class="searchBar">
            <ul class="searchContent">
                
					
				<li>
					月份：<input type="text"  mmstep="15" datefmt="yyyy-MM" class="date textInput " name="txttime" value="{$date}">
				</li>
				
				<li>
					大于金额：<input type='text' name='gtmoney' value='{$money}' />
				</li>
				
                <li style="padding-top:0;"><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
        	<php>$c_date = str_replace("-","_",$date); </php>
            <!--
			<li><a class="edit selectedDo" href="{:U('Assetsprint/out',array('txttime'=>$c_date,'gtmoney'=>$money))}" warn="请选择至少选择一个产品" target="_blank" data="ids[]" width="600" height="500" rel="dsadsasd"><span>Excel选择导出</span></a></li>		
			-->
			<li><a height="280" width="450" target="dialog" rel="xfout_all" href="{:U('Assetsprint/out',array('txttime'=>$c_date,'gtmoney'=>$money))}" class="edit"><span>Excel全部导出</span></a></li>
        </ul>
    </div>
	<table class="table" width="100%" layoutH="88">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
				<th width='100;'>用户ID</th>
				<th width='200;'>消费时间</th>
				<th width='200;' >账号</th>
				<th width='200;'>名称</th>
				<th width='200;'>消费金额</th>
				<th width='300px;'>邮箱</th>	
				<th width='300px;' >店名</th>	
				<th width='300px;'>电话</th>			
				<th width='200;' >手机</th>			
				<th width='100'>性别</th>	
				<th width='400;'>地址</th>											
			</tr>
		</thead>
		<tbody>	
		<volist name='list' id='vo'>
			<tr target="sid_user" rel="9">
				<td><input name="ids[]" class="chpro" value="{$vo.userid}" type="checkbox"></td>
				<td>
					  <a title="查看" target="dialog" width="580" height="500" rel="User_detail_{$vo['id']}" href="{:U('User/detail',array('id'=>$vo['userid']))}">{$vo.userid}</a></td>
				<td>{$vo.pay_time}</td>
				<td>{$vo.username}</td>
				<td>{$vo.realname}</td>
				<td>{$vo.amount}</td>
				<td>{$vo.email}</td>
				<td>{$vo.company}</td>
				<td>{$vo.tel}</td>
				<td>{$vo.mobile}</td>
				<td>{$vo.sex}</td>
				<td>{$vo.address}</td>
		</tr>
		</volist>
			
		</tbody>
	</table>
	<include file="Index:pages" />
</div>

<script>	
function ajaxTodo(url){
	$.ajax({
		type: 'POST',
		url: url,
		dataType: "json",
		cache: false,
		success: function(){ $("a", $(".j-num")).parent('.selected').children().click();return 0; },
		error: DWZ.ajaxError
	});
}

if(typeof('showFace')!="function"){
	var time = "";
		if($("#stime").val()!=""){
			 time += "&starttime="+$("#stime").val();
		}
		if($("#etime").val()!=""){
			 time += "&endtime="+$("#etime").val();
		}
function navTabAjaxDone(json){
    if (json.action == 'piechart'){	
		var todo = json.ftodo;
		var url = "{:U('Assetsreport/piechart',array('todo'=>'piechart'))}" + '&ids='+json.ids +'&ftodo='+json.ftodo+time;
		$("#forstautss").attr('href',url);
        $("#forstautss").click();
    }else if (json.action == 'barchart'){
		var todo = json.ftodo;
		var url = "{:U('Assetsreport/barchart',array('todo'=>'barchart'))}" + '&ids='+json.ids +'&ftodo='+json.ftodo+time;
		$("#forstautss").attr('href',url);
        $("#forstautss").click();
	}
	else {
		DWZ.ajaxDone(json);
		navTab.reload();
	}
}

}
</script>
